import { Base } from '../../utils/base.js';

class YcMakeup extends Base {
  constructor() {
    super();
  }

  getNickName(Name, callBack) {
    var param = {
      url: 'getNickName',
      data: Name,
      type: 'post',
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getBuKuanSJ(aid, callBack) {
    var param = {
      url: 'getBuKuanSJ/' + aid,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getBuKuanPJ(aid, id, callBack) {
    var param = {
      url: 'getBuKuanPJ/' + aid + '?id=' + id,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

  getTebie(aid, callBack) {
    var param = {
      url: 'getTebie?id=' + aid,
      sCallBack: function (data) {
        callBack && callBack(data);
      }
    };
    this.request(param);
  }

}

export { YcMakeup };